package com.colorfruit.admin.business.service;

import com.colorfruit.admin.pojo.entity.PayBusinessOrder;
import com.colorfruit.admin.pojo.vo.shopcard.ShopCartVo;
import com.colorfruit.framework.model.pojo.BaseResult;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ShopCartService {
    /**
     * 添加订单到购物车
     * @param userId 用户ID
     * @param preShelfOrderId 预上架订单ID
     * @return
     */
    BaseResult addToShopCart(String userId,Long preShelfOrderId, Integer buyNum);

    /**
     * 查询用户购物车商品列表
     * @param userId
     * @return
     */
    List<ShopCartVo> selectShopCartList(String userId, String productName, int page, int size);

    PageInfo<ShopCartVo> selectHistoryShopCartList(String userId, String productName, int page, int size);

    /**
     * 删除购物车商品
     * @return
     */
    Integer deleteProduct(String userId, String shoppingCartIds);



}
